package com.asia5b.a5mall.goods.adapter

import com.asia5b.a5mall.goods.R
import com.asia5b.a5mall.middleware.model.goods.KeywordModel
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * Created by zhangyuncai on 2020/1/11.
 * 后台返回的关键词
 */
class SearchServiceKeyAdapter(list:ArrayList<KeywordModel>):
BaseQuickAdapter<KeywordModel,BaseViewHolder>(R.layout.item_searchkey_key_adapter,list){
    override fun convert(helper: BaseViewHolder, item: KeywordModel) {
        helper.setText(R.id.tv_search_content,item.words)
    }
}